<div ng-controller="countDetailCtrl" class="cry">
<style>
#empty_2 .wsc_empty_one{
    right: 5px;
}
</style>
    <div class="cry_title">
        <h3 class="wmainTitle">
            <a href="#/app/statistics/count">统计报表</a>
        </h3>
        <h3 href="" class="wmainTitle">
            统计明细
            <span></span>
        </h3>
        <div class="tools">     
            <ul>
                <li class="select_box" ng-show = "AREA != 'AREA'">
                    <select style="width:125px" ng-model="item"  ng-options="item.city_id as item.city_name for item in city">
                        <option value="">全部(省/直辖市)</option>
                    </select>
                </li>
                <li class="select_box" ng-show = "AREA != 'AREA'">
                    <select style="width:125px" ng-model="item_1" ng-options="item_1.city_id as item_1.city_name for item_1 in city_1">
                        <option value="">全部(市/区)</option>
                    </select>
                </li>
                <li class="select_box" ng-show = "AREA != 'AREA'">
                    <select style="width:125px" ng-model="item_2" ng-options="item_2.city_id as item_2.city_name for item_2 in city_2">
                        <option value="">全部(县/区)</option>
                    </select>
                </li>

                <li class="select_box" ng-show = "AREA == 'AREA'">
                    <select style="width:125px" ng-model="item_3" ng-options="item_3.city_id as item_3.city_name for item_3 in areaCity">
                        <option value="">全部(县/区)</option>
                    </select>
                </li>                
                <li class="time_box" id="empty_2">
                        <span class="input-icon">
                                <input type="text" class="form-control input-sm" ng-click="startOrderOpen = !startOrderOpen" datepicker-popup="yyyy" ng-model="vm.year" is-open="startOrderOpen" ng-init="startOrderOpen = false"  close-text="Close" placeholder="输入时间" />
                                <i class="iconfont icon-rili"></i>
                        </span>
                    <div class="wsc_empty wsc_empty_one" ng-click="vm.year=''"><i class="fa fa-times-circle"></i></div>
                </li>
                <li>
                    <button class="btn btn-primary" data-ng-click="searchByDateRange($event)">查询</button>
                </li>
            </ul>
        </div>
    </div>
    <div class="container-fluid bg-white padding-top-0 padding-bottom-0">
        <table class="table table-bordered" style="margin-top:30px;">
            <thead>
                <tr>
                    <th>日期</th>
                    <th>1月</th>
                    <th>2月</th>
                    <th>3月</th>
                    <th>4月</th>
                    <th>5月</th>
                    <th>6月</th>
                    <th>7月</th>
                    <th>8月</th>
                    <th>9月</th>
                    <th>10月</th>
                    <th>11月</th>
                    <th>12月</th>
                    <th>总数</th>
                </tr>
            </thead>
            <tbody>
            <tr ng-repeat="item in result">
                <td data-ng-bind="item.city_name"></td>
                <td ng-repeat="times in item.statistics track by $index" ng-bind="times"></td>
            </tr>
            <tr>
                <td colspan="14" ng-show="result.length==0" style="text-align: center;">
                    暂无数据
                </td>
            </tr>
            </tbody>
        </table>
    </div>
</div>